
<?
	  include("/inc/header.html") {}
    ?>

<link rel="stylesheet" href="static/uploadify/uploadify.css"
	type="text/css"></link>
<script type="text/javascript"
	src="static/uploadify/jquery.uploadify.min.js"></script>

<div id="page-wrapper" style="margin-left: 0px; ">

	<!--BEGIN CONTENT-->
	<div class="page-content"
		style="min-height: auto;padding-bottom: 20px; height: 610px; overflow: auto;">

		<div class="row mbl">

			<div class="panel ">
				<div class="panel-body pan">

					<div class="row" style="margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">用户名
								<span class='require' id="yonghu">*</span> </label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="username" type="text" class="form-control" value=""
										disabled="true" />
								</div>
							</div>
						</div>
						<div class="col-lg-6"
							style="width: 400px; float:left; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">状态
								<span class='require'>*</span> </label>
							<div class="col-md-9">
								<div class="input-icon">
									<select id="status" class="form-control" disabled="true">
										<option value="0">启用</option>
										<option value="1">禁用</option>
									</select>
								</div>
							</div>
						</div>
					</div>


					<div class="row" style="margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">真实姓名</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="realname" type="text" class="form-control" value=""
										disabled="true" />
								</div>
							</div>
						</div>
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">昵称
							</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="nickname" type="text" class="form-control" value=""
										disabled="true" />
								</div>
							</div>
						</div>
					</div>


					<div class="row" style="margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px;display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">手机号
							<span class='require'>*</span> </label>
							</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="mobilephone" type="text" class="form-control"
										disabled="true" />
								</div>
							</div>
						</div>
						<div class="col-lg-6"
							style="width: 400px; float:left; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">用户类型</label>
							<div class="col-md-9">
								<div class="input-icon">
									<select id="type" class="form-control" disabled="true">
										<option value="2">机构下的个人用户</option>
									</select>
								</div>
							</div>
						</div>
					</div>


					<div class="row" style="margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px;display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">头像</label>
							<div class="col-md-9">
								<div class="input-icon">
									<div style="display:inline " id="single"></div>
									<input id="avatarImg" type="hidden" class="form-control" value="" />
								</div>
							</div>
						</div>
						<div class="col-lg-6"
							style="width: 400px; float:left;  margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">秘钥</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="keys" 
										type="text" class="form-control" value="" disabled="true" />
								</div>
							</div>
						</div>
						<div class="col-lg-6"
							style="width: 400px; float:left;  margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">学历</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="education" onchange="onPanduan(this.value);"
										type="text" class="form-control" value="" disabled="true" />
								</div>
							</div>
						</div>
					
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px;display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">专业</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="profession" class="form-control" disabled="true" />
								</div>
							</div>
						</div>
						<div class="col-lg-6"
							style="width: 400px; float:left; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">邮箱
							</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="email" type="text" class="form-control"
										disabled="true" />
								</div>
							</div>
						</div>
					</div>
					<div class="row" style=" margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">证件类型</label>
							<div class="col-md-9">
								<div class="input-icon">
									<select id="certificateType" class="form-control"
										disabled="true">
										<option value="0">身份证</option>
										<option value="1">军官证</option>
										<option value="2">护照</option>
										<option value="3">其他</option>
									</select>
								</div>
							</div>
						</div>


						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">证件号</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="certificateNumber" class="form-control"
										disabled="true" />
								</div>
							</div>
						</div>
					</div>
					<div class="row" style="margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">工作单位</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="workunit" type="text" class="form-control" value=""
										disabled="true" />
								</div>
							</div>
						</div>
						<div class="col-lg-6"
							style="width: 400px;  float:left; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">职称
							</label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="title" type="text" class="form-control" value=""
										disabled="true" />
								</div>
							</div>
						</div>
					</div>
					<div class="row" style="margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">性别
								<span class='require'>*</span> </label>
							<div class="col-md-9">
								<div class="input-icon">
									<select id="gender" class="form-control" disabled="true">
										<option value="0">女</option>
										<option value="1">男</option>
										<option value="2">未知</option>
									</select>
								</div>
							</div>
						</div>
						<div class="col-lg-6"
						style="width: 400px;  float:left;margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">年龄
							    <span class='require'>*</span></label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="age" type="text" class="form-control" value="" disabled="true"/>
								</div>
							</div>
						</div>
					</div>
					<div style="margin-bottom: 10px; width: 750px;">
						<label for="inputUsername" class="col-md-3 control-label">研究领域
							<span class='require'></span> </label>
						<div class="col-md-12">
							<div class="input-icon">
								<textarea id="researchField" rows="2" cols="20"
									class="form-control" disabled="true"></textarea>
							</div>
						</div>
					</div>
					<div class="row" style="margin-bottom: 10px;">
					<div class="col-lg-6"
						style="width: 400px; float:left;  margin-right:-20px; display:inline;">
						<label for="inputUsername" class="col-md-3 control-label">有效期<span class='require'>*</span></label>
						<div class="col-md-9">
							<div class="input-icon">
								<input id="validity" type="text" class="form-control" value="" disabled="true"  />
							</div>
						</div>
					</div>
				</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
	function getQueryString(name) {
		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
		var r = window.location.search.substr(1).match(reg);
		if (r != null)
			return unescape(r[2]);
		return null;
	}
	var winName = getQueryString("winName");
	var indexid = window.parent.window[winName].getlay();
	//var index1 = window.parent.getqueryId();
	$(function() {
		$.ajax({
			type : "post",
			url : "./OrganizationUserSelect.do",
			data : {
				"id" : indexid,
			},
			dataType : "json",
			async : false,
			success : function(data) {
				$("#username").val(data[0].username);
				$("#password").val(data[0].password);
				$("#nickname").val(data[0].nickname);
				$("#realname").val(data[0].realname);
				$("#type").val(data[0].type);
				$("#createTime").val(data[0].createTime);
				$("#createIpAddress").val(data[0].createIpAddress);
				$("#avatarImg").val(data[0].avatarImg);
				$("#email").val(data[0].email);
				$("#education").val(data[0].education);
				$("#profession").val(data[0].profession);
				$("#researchField").val(data[0].researchField);
				$("#status").val(data[0].status);
				$("#mobilephone").val(data[0].mobilephone);
				$("#workunit").val(data[0].workunit);
				$("#title").val(data[0].title);
				$("#certificateType").val(data[0].certificateType);
				$("#certificateNumber").val(data[0].certificateNumber);
				$("#memberId").val(data[0].memberId);
				$("#single").html("<img src='"+data[0].avatarImg+"' width='30' height='30'/>");
				$("#age").val(data[0].age);
				$("#gender").val(data[0].gender);
				$("#keys").val(data[0].keys);
				$("#validity").val(data[0].validity);
			},
			error : function(data) {
				alert("请求失败");
			}
		});

	});

	function save() {
		var index = parent.layer.getFrameIndex(window.name);
		parent.layer.close(index);
	}
</script>


